Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 3 - Printer Drivers / Using Resources in Drivers


Defining Status Messages

You can define your own status ('stat') resources for sending informational messages to the desktop printer window while a document is printing. Each status resource includes a status-type indicator, a status ID value, an alert value, and the status string. Listing 3-25 shows a status resource that defines the status text string displayed while the ImageWriter II printer driver is sending document data to the printer.

Listing 3-25 A status resource for the ImageWriter II printer driver

resource 'stat' (kDriverStatus, sysHeap, purgeable)
{
   'IWII',
   
   {
   gxInformationalStatus, 1, 0, "Sending data to printer";
   gxUserAlert, 1, kDriverStatus, "Please check that the printer 
is on-line";
   }
};

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help